import java.security.KeyStore.PrivateKeyEntry;
import javax.naming.Name;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/8 8:26
 * @description:
 */
public class hello {

      private String Name;
      void  setName(String name1){
        name1 = name1;
      }
      String getname(){
        return Name;
      }

  /**
   *
   * @param market 超市
   * @param product  上平
   */
  void shopping(Market market, Product product){
        Product p= market.sell(product);
      if(p!=null){
        System.out.println(Name+"在"+market.getname()+"买到了"+produnt.getgame());
      }else {
        System.out.println(Name+"白跑了一趟，在"+market.getname()+"没有买到"+produnt.getgame());
      }
      }

}
